package pod

import (
	"io"
	v1 "k8s.io/api/core/v1"
	"k8s.io/client-go/tools/remotecommand"
)

type ReqBase struct {
	Name      string `json:"name" form:"name"`
	Namespace string `json:"namespace" form:"namespace"`
}

type ListResp struct {
	Pods *v1.PodList `json:"pods"`
}

type ListReq struct {
	ReqBase    `json:",inline"`
	DeployName string `json:"deploy_name" form:"deploy_name"`
}

type DeleteReq struct {
	Name string `json:"name" form:"name"`
}

type ExecReq struct {
	ReqBase `json:",inline"`
	Command []string `json:"command" form:"command"`
}

type ExecResp struct {
	io.Reader
	io.Writer
	remotecommand.TerminalSizeQueue
}
